package org.springblogs.batch.quartz.stock;

import org.springblogs.batch.config.stock.StockInfoBatchJob;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class StockInfoTask extends AbstractScheduledTask<StockInfoBatchJob> {

	@Autowired
	private StockInfoBatchJob Job;

	/**
	 * 每天1点执行
	 */
	@Scheduled(cron = "0 0 1 1/1 * ? ")
	@Override
	public void taskScheduled() {
		log.debug("StockInfoTask taskScheduled");
		execute();
	}

	@Override
	public StockInfoBatchJob getJob() {
		return Job;
	}

}